package com.wawayaya.db.entitydao;


import com.wawayaya.bean.Area;
import com.wawayaya.db.DBManager;
import com.wawayaya.db.basedao.AreaDao;

public class AreaEntityDao extends BaseEntityDao<AreaDao, Area, Long> {

	@Override
	protected AreaDao initEntityDao() {
		return DBManager.newSession().getAreaDao();
	}

	public void deleteEntityByKey(Long key) {
		getEntityDao().deleteByKey(key);
	}

	@Override
	public void replaceEntity(Area entity) {
		getEntityDao().insertOrReplace(entity);
	}
}
